package com.zyj.order.controller;

import com.zyj.order.pojo.User;
import com.zyj.order.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/user/query")
public class UserController {
    @Autowired
    UserService userService;

    @RequestMapping("point.action")
    @ResponseBody
    public User query(int userId){
        User u=userService.query(userId);
        return u;
    }
}

